<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/admin/jsp/common/HtmlHead.jsp"/>
<title>Insert title here</title>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/calendar/WdatePicker.js"></script>
</head>
<body>
	<s:form action="editDo" method="post">
		<s:hidden name="cls.id"/>
		<table width="100%">
			<tr>
				<th>班级名称</th>
				<td>
					<s:textfield name="cls.name"/>
				</td>
			</tr>
			<tr>
				<th>班级编号</th>
				<td>
					<s:if test="cls.id>0">
						<s:textfield name="cls.number" disabled="true"/>
					</s:if>
					<s:else>
						<s:textfield name="cls.number"/>
					</s:else>
				</td>
			</tr>
			<tr>
				<th>年级</th>
				<td>
					<s:select list="gradeMap" name="cls.grade"></s:select>
				</td>
			</tr>
			<tr>
				<th>班主任</th>
				<td>
					<s:select list="teacherList" name="cls.headerId" listKey="id" listValue="realName"></s:select>
				</td>
			</tr>
			<tr>
				<th>学期</th>
				<td>
					<input class="Wdate" onclick="WdatePicker()" type="text" name="cls.startDate" value="<s:date name="cls.startDate" format="yyyy-MM-dd"/>"/>
					-
					<input class="Wdate" onclick="WdatePicker()" type="text" name="cls.endDate" value="<s:date name="cls.endDate" format="yyyy-MM-dd"/>"/>
				</td>
			</tr>
			<tr>
				<th>班级描述</th>
				<td>
					<s:textarea name="cls.des"/>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="提交"/>
				</td>
			</tr>
		</table>
	</s:form>
</body>
<jsp:include page="/admin/jsp/common/errorMessage.jsp"/>
</html>